
j=1;
for i=-10:0.5:10
    y(j) = 1/(1+exp(-2*1*i));
    j = j+1;
end

x=[-10:0.5:10];
plot(x,y);